<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件下载</title>
    <!--引入axios库-->
    <script src="js/axios.min.js"></script>
    <!-- 引入VUE库 -->
    <script src="js/vue.min.js"></script>

    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
<!--spring resource-->
<div id="app">
    <a href="upload\store\1\测试仓库\一级目录文件\啊啊啊啊啊啊\1.png" download>下载使用手册</a>
    <button @click.prevent="downLoad">点击下载</button>
    <button @click.prevent="downLoad">评论</button>

</div>

</body>
<script>
    var v=new Vue({
        el:"#app",
        methods:{
            downLoad(){
                let param=new URLSearchParams();
                param.append("fileName","/upload/store/1/测试仓库/一级目录文件/啊啊啊啊啊啊/1.png")
                axios.post("download",param).then(res=>{
                    console.log(res.data)
                    console.log("init -----------------------")
                })
            }
        }

    })
</script>
</html>